package io.xiyou.user.dao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * tb_user_address
 *
 * @author
 */
@TableName("t_user_address")
@ApiModel(value = "generate.TbUserAddress地址表")
@Data
public class UserAddress implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
     * 收货人姓名
     */
    @ApiModelProperty(value = "收货人姓名")
    private String name;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    private String phone;

    /**
     * 省份ID
     */
    @ApiModelProperty(value = "省份ID")
    private Integer provinceId;

    /**
     * 城市ID
     */
    @ApiModelProperty(value = "城市ID")
    private Integer cityId;

    /**
     * 地区ID
     */
    @ApiModelProperty(value = "地区ID")
    private Integer regionId;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = "详细地址")
    private String detailsAddress;

    /**
     * 是否默认收货地址：0-否；1-是
     */
    @ApiModelProperty(value = "是否默认收货地址：0-否；1-是")
    private Boolean isDefault;

    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    /**
     * 备注信息
     */
    @ApiModelProperty(value = "备注信息")
    private String remarks;

    /**
     * 删除标记:0-未删除；1-已删除
     */
    @ApiModelProperty(value = "删除标记:0-未删除；1-已删除")
    private Boolean delFlag;

    private static final long serialVersionUID = 1L;
}